+2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
+ gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
+ gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
+ gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
+ GEqualFunc where applicable.
+
+ * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
+ pango_font_description_equal as changed in pango.
+
+ * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
+
+ * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
+
+ * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
+ gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
+
+ * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
+ gtk_rc_styles_compare -> gtk_rc_styles_equal.
+
2000-11-12 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/Makefile.am (democodedir): change demo install
+2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
+ gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
+ gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
+ gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
+ GEqualFunc where applicable.
+
+ * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
+ pango_font_description_equal as changed in pango.
+
+ * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
+
+ * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
+
+ * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
+ gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
+
+ * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
+ gtk_rc_styles_compare -> gtk_rc_styles_equal.
+
2000-11-12 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/Makefile.am (democodedir): change demo install
+2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
+ gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
+ gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
+ gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
+ GEqualFunc where applicable.
+
+ * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
+ pango_font_description_equal as changed in pango.
+
+ * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
+
+ * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
+
+ * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
+ gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
+
+ * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
+ gtk_rc_styles_compare -> gtk_rc_styles_equal.
+
2000-11-12 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/Makefile.am (democodedir): change demo install
+2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
+ gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
+ gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
+ gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
+ GEqualFunc where applicable.
+
+ * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
+ pango_font_description_equal as changed in pango.
+
+ * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
+
+ * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
+
+ * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
+ gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
+
+ * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
+ gtk_rc_styles_compare -> gtk_rc_styles_equal.
+
2000-11-12 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/Makefile.am (democodedir): change demo install
+2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
+ gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
+ gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
+ gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
+ GEqualFunc where applicable.
+
+ * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
+ pango_font_description_equal as changed in pango.
+
+ * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
+
+ * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
+
+ * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
+ gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
+
+ * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
+ gtk_rc_styles_compare -> gtk_rc_styles_equal.
+
2000-11-12 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/Makefile.am (democodedir): change demo install
+2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
+ gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
+ gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
+ gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
+ GEqualFunc where applicable.
+
+ * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
+ pango_font_description_equal as changed in pango.
+
+ * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
+
+ * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
+
+ * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
+ gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
+
+ * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
+ gtk_rc_styles_compare -> gtk_rc_styles_equal.
+
2000-11-12 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/Makefile.am (democodedir): change demo install
+2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
+ gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
+ gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
+ gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
+ GEqualFunc where applicable.
+
+ * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
+ pango_font_description_equal as changed in pango.
+
+ * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
+
+ * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
+
+ * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
+
+ * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
+
+ * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
+ gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
+
+ * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
+ gtk_rc_styles_compare -> gtk_rc_styles_equal.
+
2000-11-12 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/Makefile.am (democodedir): change demo install
colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
- (GCompareFunc) gdk_color_equal);
+ (GEqualFunc) gdk_color_equal);
if (private_cmap)
{
{
fl = g_ptr_array_index(fbfm->all_descs, i);
- /* Can't use pango_font_description_compare() because it checks ->size as well */
+ /* Can't use pango_font_description_equal() because it checks ->size as well */
if(!g_strcasecmp(desc->family_name, fl->desc.family_name)
&& desc->style == fl->desc.style
&& desc->weight == fl->desc.weight
};
int i;
- fontmap->all_fonts = g_hash_table_new(pango_font_description_hash, (GCompareFunc)pango_font_description_compare);
+ fontmap->all_fonts = g_hash_table_new(pango_font_description_hash, (GEqualFunc)pango_font_description_equal);
fontmap->all_descs = g_ptr_array_new();
for(i = 0; font_dirs[i]; i++)
list_fonts(fontmap, NULL, fontmap->all_descs, font_dirs[i]);
}
*/
-static guint gdk_xid_hash (guint *xid);
-static gint gdk_xid_compare (guint *a,
- guint *b);
+static guint gdk_xid_hash (guint *xid);
+static gboolean gdk_xid_equal (guint *a,
+ guint *b);
static GHashTable *xid_ht = NULL;
if (!xid_ht)
xid_ht = g_hash_table_new ((GHashFunc) gdk_xid_hash,
- (GCompareFunc) gdk_xid_compare);
+ (GEqualFunc) gdk_xid_equal);
g_hash_table_insert (xid_ht, xid, data);
}
{
if (!xid_ht)
xid_ht = g_hash_table_new ((GHashFunc) gdk_xid_hash,
- (GCompareFunc) gdk_xid_compare);
+ (GEqualFunc) gdk_xid_equal);
g_hash_table_remove (xid_ht, &xid);
}
return *xid;
}
-static gint
-gdk_xid_compare (guint *a,
- guint *b)
+static gboolean
+gdk_xid_equal (guint *a,
+ guint *b)
{
return (*a == *b);
}
#include "gdkcolor.h"
#include "gdkprivate-win32.h"
-static void free_colormap (Colormap colormap);
+static void free_colormap (Colormap colormap);
-static gint gdk_colormap_match_color (GdkColormap *cmap,
- GdkColor *color,
- const gchar *available);
-static void gdk_colormap_add (GdkColormap *cmap);
-static void gdk_colormap_remove (GdkColormap *cmap);
-static guint gdk_colormap_hash (Colormap *cmap);
-static gint gdk_colormap_cmp (Colormap *a,
- Colormap *b);
+static gint gdk_colormap_match_color (GdkColormap *cmap,
+ GdkColor *color,
+ const gchar *available);
+static void gdk_colormap_add (GdkColormap *cmap);
+static void gdk_colormap_remove (GdkColormap *cmap);
+static guint gdk_colormap_hash (Colormap *cmap);
+static gboolean gdk_colormap_equal (Colormap *a,
+ Colormap *b);
-static void gdk_colormap_init (GdkColormap *colormap);
-static void gdk_colormap_class_init (GdkColormapClass *klass);
-static void gdk_colormap_finalize (GObject *object);
+static void gdk_colormap_init (GdkColormap *colormap);
+static void gdk_colormap_class_init (GdkColormapClass *klass);
+static void gdk_colormap_finalize (GObject *object);
static gpointer parent_class = NULL;
colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
- (GCompareFunc) gdk_color_equal);
+ (GEqualFunc) gdk_color_equal);
private->private_val = private_cmap;
private->xcolormap = create_colormap (gdk_root_window, xvisual, private_cmap);
colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
- (GCompareFunc) gdk_color_equal);
+ (GEqualFunc) gdk_color_equal);
gdk_colormap_sync (colormap, TRUE);
}
if (!colormap_hash)
colormap_hash = g_hash_table_new ((GHashFunc) gdk_colormap_hash,
- (GCompareFunc) gdk_colormap_cmp);
+ (GEqualFunc) gdk_colormap_equal);
private = GDK_COLORMAP_PRIVATE_DATA (cmap);
if (!colormap_hash)
colormap_hash = g_hash_table_new ((GHashFunc) gdk_colormap_hash,
- (GCompareFunc) gdk_colormap_cmp);
+ (GEqualFunc) gdk_colormap_equal);
private = GDK_COLORMAP_PRIVATE_DATA (cmap);
return (guint) *cmap;
}
-static gint
-gdk_colormap_cmp (Colormap *a,
- Colormap *b)
+static gboolean
+gdk_colormap_equal (Colormap *a,
+ Colormap *b)
{
return (*a == *b);
}
}
static gint
-gdk_handle_compare (HANDLE *a,
+gdk_handle_equal (HANDLE *a,
HANDLE *b)
{
return (*a == *b);
if (!handle_ht)
handle_ht = g_hash_table_new ((GHashFunc) gdk_handle_hash,
- (GCompareFunc) gdk_handle_compare);
+ (GEqualFunc) gdk_handle_equal);
g_hash_table_insert (handle_ht, handle, data);
}
{
if (!handle_ht)
handle_ht = g_hash_table_new ((GHashFunc) gdk_handle_hash,
- (GCompareFunc) gdk_handle_compare);
+ (GEqualFunc) gdk_handle_equal);
g_hash_table_remove (handle_ht, &handle);
}
#define GDK_COLORMAP_PRIVATE_DATA(cmap) ((GdkColormapPrivateX11 *) GDK_COLORMAP (cmap)->windowing_data)
-static gint gdk_colormap_match_color (GdkColormap *cmap,
- GdkColor *color,
- const gchar *available);
-static void gdk_colormap_add (GdkColormap *cmap);
-static void gdk_colormap_remove (GdkColormap *cmap);
-static guint gdk_colormap_hash (Colormap *cmap);
-static gint gdk_colormap_cmp (Colormap *a,
- Colormap *b);
+static gint gdk_colormap_match_color (GdkColormap *cmap,
+ GdkColor *color,
+ const gchar *available);
+static void gdk_colormap_add (GdkColormap *cmap);
+static void gdk_colormap_remove (GdkColormap *cmap);
+static guint gdk_colormap_hash (Colormap *cmap);
+static gboolean gdk_colormap_equal (Colormap *a,
+ Colormap *b);
static void gdk_colormap_init (GdkColormap *colormap);
static void gdk_colormap_class_init (GdkColormapClass *klass);
colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
- (GCompareFunc) gdk_color_equal);
+ (GEqualFunc) gdk_color_equal);
private->private_val = private_cmap;
private->xcolormap = XCreateColormap (private->xdisplay, gdk_root_window,
colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
- (GCompareFunc) gdk_color_equal);
+ (GEqualFunc) gdk_color_equal);
gdk_colormap_sync (colormap, TRUE);
}
if (!colormap_hash)
colormap_hash = g_hash_table_new ((GHashFunc) gdk_colormap_hash,
- (GCompareFunc) gdk_colormap_cmp);
+ (GEqualFunc) gdk_colormap_equal);
private = GDK_COLORMAP_PRIVATE_DATA (cmap);
if (!colormap_hash)
colormap_hash = g_hash_table_new ((GHashFunc) gdk_colormap_hash,
- (GCompareFunc) gdk_colormap_cmp);
+ (GEqualFunc) gdk_colormap_equal);
private = GDK_COLORMAP_PRIVATE_DATA (cmap);
return *cmap;
}
-static gint
-gdk_colormap_cmp (Colormap *a,
- Colormap *b)
+static gboolean
+gdk_colormap_equal (Colormap *a,
+ Colormap *b)
{
return (*a == *b);
}
#include "gdkprivate-x11.h"
#include "gdkinternals.h"
-static void gdk_visual_add (GdkVisual *visual);
-static void gdk_visual_decompose_mask (gulong mask,
- gint *shift,
- gint *prec);
-static guint gdk_visual_hash (Visual *key);
-static gint gdk_visual_compare (Visual *a,
- Visual *b);
+static void gdk_visual_add (GdkVisual *visual);
+static void gdk_visual_decompose_mask (gulong mask,
+ gint *shift,
+ gint *prec);
+static guint gdk_visual_hash (Visual *key);
+static gboolean gdk_visual_equal (Visual *a,
+ Visual *b);
static GdkVisualPrivate *system_visual;
if (!visual_hash)
visual_hash = g_hash_table_new ((GHashFunc) gdk_visual_hash,
- (GCompareFunc) gdk_visual_compare);
+ (GEqualFunc) gdk_visual_equal);
private = (GdkVisualPrivate*) visual;
return key->visualid;
}
-static gint
-gdk_visual_compare (Visual *a,
- Visual *b)
+static gboolean
+gdk_visual_equal (Visual *a,
+ Visual *b)
{
return (a->visualid == b->visualid);
}
#include "gdkprivate-x11.h"
#include <stdio.h>
-static guint gdk_xid_hash (XID *xid);
-static gint gdk_xid_compare (XID *a,
- XID *b);
+static guint gdk_xid_hash (XID *xid);
+static gboolean gdk_xid_equal (XID *a,
+ XID *b);
static GHashTable *xid_ht = NULL;
if (!xid_ht)
xid_ht = g_hash_table_new ((GHashFunc) gdk_xid_hash,
- (GCompareFunc) gdk_xid_compare);
+ (GEqualFunc) gdk_xid_equal);
g_hash_table_insert (xid_ht, xid, data);
}
{
if (!xid_ht)
xid_ht = g_hash_table_new ((GHashFunc) gdk_xid_hash,
- (GCompareFunc) gdk_xid_compare);
+ (GEqualFunc) gdk_xid_equal);
g_hash_table_remove (xid_ht, &xid);
}
return *xid;
}
-static gint
-gdk_xid_compare (XID *a,
- XID *b)
+static gboolean
+gdk_xid_equal (XID *a,
+ XID *b)
{
return (*a == *b);
}
static void gtk_gc_destroy (gpointer value);
static guint gtk_gc_key_hash (gpointer key);
static guint gtk_gc_value_hash (gpointer value);
-static gint gtk_gc_key_compare (gpointer a,
+static gint gtk_gc_key_equal (gpointer a,
gpointer b);
static guint gtk_gc_drawable_hash (GtkGCDrawable *d);
-static gint gtk_gc_drawable_compare (GtkGCDrawable *a,
+static gint gtk_gc_drawable_equal (GtkGCDrawable *a,
GtkGCDrawable *b);
(GCacheDestroyFunc) gtk_gc_key_destroy,
(GHashFunc) gtk_gc_key_hash,
(GHashFunc) gtk_gc_value_hash,
- (GCompareFunc) gtk_gc_key_compare);
+ (GEqualFunc) gtk_gc_key_equal);
gc_drawable_ht = g_hash_table_new ((GHashFunc) gtk_gc_drawable_hash,
- (GCompareFunc) gtk_gc_drawable_compare);
+ (GEqualFunc) gtk_gc_drawable_equal);
}
static GtkGCKey*
return (gulong) value;
}
-static gint
-gtk_gc_key_compare (gpointer a,
- gpointer b)
+static gboolean
+gtk_gc_key_equal (gpointer a,
+ gpointer b)
{
GtkGCKey *akey;
GtkGCKey *bkey;
return d->depth;
}
-static gint
-gtk_gc_drawable_compare (GtkGCDrawable *a,
- GtkGCDrawable *b)
+static gboolean
+gtk_gc_drawable_equal (GtkGCDrawable *a,
+ GtkGCDrawable *b)
{
return (a->depth == b->depth);
}
};
static guint gtk_rc_style_hash (const char *name);
-static gint gtk_rc_style_compare (const char *a,
+static gboolean gtk_rc_style_equal (const char *a,
const char *b);
static guint gtk_rc_styles_hash (const GSList *rc_styles);
-static gint gtk_rc_styles_compare (const GSList *a,
+static gboolean gtk_rc_styles_equal (const GSList *a,
const GSList *b);
static GtkRcStyle* gtk_rc_style_find (const char *name);
static GSList * gtk_rc_styles_match (GSList *rc_styles,
return result;
}
-static gint
-gtk_rc_styles_compare (const GSList *a,
- const GSList *b)
+static gboolean
+gtk_rc_styles_equal (const GSList *a,
+ const GSList *b)
{
while (a && b)
{
return result;
}
-static gint
-gtk_rc_style_compare (const char *a,
- const char *b)
+static gboolean
+gtk_rc_style_equal (const char *a,
+ const char *b)
{
return (strcmp (a, b) == 0);
}
if (!realized_style_ht)
realized_style_ht = g_hash_table_new ((GHashFunc) gtk_rc_styles_hash,
- (GCompareFunc) gtk_rc_styles_compare);
+ (GEqualFunc) gtk_rc_styles_equal);
style = g_hash_table_lookup (realized_style_ht, rc_styles);
{
if (!rc_style_ht)
rc_style_ht = g_hash_table_new ((GHashFunc) gtk_rc_style_hash,
- (GCompareFunc) gtk_rc_style_compare);
+ (GEqualFunc) gtk_rc_style_equal);
g_hash_table_insert (rc_style_ht, rc_style->name, rc_style);
}
gint i;
if (!font_cache_table)
- font_cache_table = g_hash_table_new (font_hash, (GCompareFunc) gdk_font_equal);
+ font_cache_table = g_hash_table_new (font_hash, (GEqualFunc) gdk_font_equal);
tf = g_hash_table_lookup (font_cache_table, gfont);